/*    
 * Copyright (c) 2013 ISoftStone, Inc.
 * All right reserved.
 *
 * 文件名：      IBillingCycleUserDao.java
 * 作者:     Jacky Wang
 * 创建日期： 2013-7-1 下午03:20:50
 * 版本：           
 *
 */
package com.isoftstone.industry.aaa.core.dao.assist;

import org.springframework.data.jpa.repository.Query;

import com.isoftstone.industry.persistance.bean.BillingCycleUser;
import com.isoftstone.modules.core.persistence.IGenericDao;

/**
 *
 * @author jacky
 */
public interface BillingCycleUserDao extends IGenericDao<BillingCycleUser, String>
{
	@Query("select x from BillingCycleUser x where x.billingCycle.id=?1 and x.user.id=?2")
	BillingCycleUser findByBillingCycleAndUser(String billingCycleId, String userId);
}
